﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter16.Code03
{
    using System.Windows;
    using System.Windows.Data;

    public class MyClass : DependencyObject
    {
        public static DependencyProperty MyStringProperty = DependencyProperty.Register(
            "MyString",
            typeof(string),
            typeof(MyClass),
            new PropertyMetadata("Default value"));

        public string MyString
        {
            get { return (string)GetValue(MyStringProperty); }
            set { SetValue(MyStringProperty, value); }
        }
    }
}
